package com.sansan.qiangji.service.impl.warehouse;

import com.sansan.qiangji.VO.board.CountPullBoxVO;
import com.sansan.qiangji.entity.warehouse.PullOrderBoxDetail;
import com.sansan.qiangji.entity.warehouse.example.PullOrderBoxDetailExample;
import com.sansan.qiangji.mapper.warehouse.PullOrderBoxDetailMapper;
import com.sansan.qiangji.service.inter.warehouse.PullOrderBoxDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PullOrderBoxDetailServiceImpl implements PullOrderBoxDetailService {

    @Autowired
    private PullOrderBoxDetailMapper pullOrderBoxDetailMapper;

    @Override
    public List<PullOrderBoxDetail> findByBoxDetailCode(String boxDetailCode) {
        return pullOrderBoxDetailMapper.findByBoxDetailCode(boxDetailCode);
    }

    @Override
    public List<PullOrderBoxDetail> findByDetailCodeAndStatus(String pullOrderDetailCode, String boxDetailStatus) {
        return pullOrderBoxDetailMapper.findByDetailCodeAndStatus(pullOrderDetailCode, boxDetailStatus);
    }

    @Override
    public long countByExample(PullOrderBoxDetailExample example) {
        return pullOrderBoxDetailMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(PullOrderBoxDetailExample example) {
        return pullOrderBoxDetailMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer pushOrderDetailId) {
        return pullOrderBoxDetailMapper.deleteByPrimaryKey(pushOrderDetailId);
    }

    @Override
    public int insert(PullOrderBoxDetail record) {
        return pullOrderBoxDetailMapper.insert(record);
    }

    @Override
    public int insertSelective(PullOrderBoxDetail record) {
        return pullOrderBoxDetailMapper.insertSelective(record);
    }

    @Override
    public List<PullOrderBoxDetail> selectByExample(PullOrderBoxDetailExample example) {
        return pullOrderBoxDetailMapper.selectByExample(example);
    }

    @Override
    public PullOrderBoxDetail selectByPrimaryKey(Integer pushOrderDetailId) {
        return pullOrderBoxDetailMapper.selectByPrimaryKey(pushOrderDetailId);
    }

    @Override
    public int updateByExampleSelective(PullOrderBoxDetail record, PullOrderBoxDetailExample example) {
        return pullOrderBoxDetailMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(PullOrderBoxDetail record, PullOrderBoxDetailExample example) {
        return pullOrderBoxDetailMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(PullOrderBoxDetail record) {
        return pullOrderBoxDetailMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(PullOrderBoxDetail record) {
        return pullOrderBoxDetailMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<CountPullBoxVO> countPullBox() {
        return pullOrderBoxDetailMapper.countPullBox();
    }
}
